// src/api/index.js
import request from './request';

// 用户相关接口
const auth_url='/Auth/logined/'
const open_url='/Auth/open/'
export const Api = {
    db: '/data/db.json',
    // 获取用户信息
    Info: '/user/info',

    // 登录
    login: '/user/login',

    // 注册
    register: '/user/register',
    ///Auth/logined/DeptInfo/treeList
    // /Auth/open/DictInfo/getOpenList /Auth/open/Login/loginByPwd
    'DeptInfo_treeList': auth_url+'DeptInfo/treeList',
    'Login_loginByPwd': open_url+'Login/loginByPwd',
   
};
export const requestFn = (url, method, data) => {
    return request({
        url,
        method,
        data
    })
}